﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Default.Master" AutoEventWireup="true"
	CodeBehind="CustomerInfo.aspx.cs" Inherits="SaleManagement.Web.Pages.CustomerInfo" %>

<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
	Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
	Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
	Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
	Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dxtc" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
	Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dxw" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
	Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dxrp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<div id="divContent" runat="server">
		<table width="100%">
			<tr>
				<td class="search_header">
					Tra cứu theo khách
				</td>
			</tr>
			<tr>
				<td>
					<table border="0">
						<tr>
							<td style="height: 19px;">
								<asp:Literal ID="Literal5" runat="server" Text="Mã khách hàng"></asp:Literal>
								:
							</td>
							<td style="height: 19px">
								<dxe:ASPxTextBox ID="txtSearchCode" runat="server" Width="150px" ClientInstanceName="txtSearchCode"
									CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
									<ValidationSettings>
										<ErrorImage Height="14px" Url="~/App_Themes/Aqua/Editors/edtError.png" />
										<ErrorFrameStyle ImageSpacing="4px">
											<ErrorTextPaddings PaddingLeft="4px" />
										</ErrorFrameStyle>
									</ValidationSettings>
								</dxe:ASPxTextBox>
							</td>
							<td style="height: 19px; padding-left: 10px;">
								<asp:Literal ID="Literal6" runat="server" Text="Tên khách hàng"></asp:Literal>
								:
							</td>
							<td style="height: 19px">
								<dxe:ASPxTextBox ID="txtSearchName" runat="server" Width="150px" ClientInstanceName="txtSearchName"
									CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
									<ValidationSettings>
										<ErrorImage Height="14px" Url="~/App_Themes/Aqua/Editors/edtError.png" />
										<ErrorFrameStyle ImageSpacing="4px">
											<ErrorTextPaddings PaddingLeft="4px" />
										</ErrorFrameStyle>
									</ValidationSettings>
								</dxe:ASPxTextBox>
							</td>
							<td style="height: 19px; padding-left: 10px;">
								<asp:Literal ID="Literal1" runat="server" Text="Phone"></asp:Literal>
								:
							</td>
							<td style="height: 19px">
								<dxe:ASPxTextBox ID="txtSearchPhone" runat="server" Width="120px" ClientInstanceName="txtSearchPhone"
									CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
									<ValidationSettings>
										<ErrorImage Height="14px" Url="~/App_Themes/Aqua/Editors/edtError.png" />
										<ErrorFrameStyle ImageSpacing="4px">
											<ErrorTextPaddings PaddingLeft="4px" />
										</ErrorFrameStyle>
									</ValidationSettings>
								</dxe:ASPxTextBox>
							</td>
							<td style="padding-left: 10px;">
								<dxe:ASPxButton ID="ASPxButton1" runat="server" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
									CssPostfix="Aqua" Text="Tìm kiếm" ClientInstanceName="btnSearch">
									<ClientSideEvents Click="function(s,e){onbtnSearch(s,e);e.processOnServer=false;}" />
								</dxe:ASPxButton>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</div>
	<div style="padding-top: 20px;">
		<dxwgv:ASPxGridView ID="gvCustomer" runat="server" Width="100%" AutoGenerateColumns="False"
			CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" KeyFieldName="Id"
			OnCustomCallback="gvCustomer_CustomCallback" OnPageIndexChanged="gvCustomer_PageIndexChanged"
			ClientInstanceName="gvCustomer">
			<SettingsBehavior AllowDragDrop="false" AllowSort="false" AllowGroup="False" />
			<Columns>
				<dxwgv:GridViewDataTextColumn Width="15%" FieldName="CustomerNo" VisibleIndex="1"
					Caption="Mã khách hàng">
					<HeaderStyle HorizontalAlign="Center" />
				</dxwgv:GridViewDataTextColumn>
				<dxwgv:GridViewDataTextColumn Width="15%" FieldName="Name" VisibleIndex="1" Caption="Tên khách hàng">
					<HeaderStyle HorizontalAlign="Center" />
					<DataItemTemplate>
						<span onclick="showCustomerInfo('<%#Eval("Id") %>');" style="cursor: pointer; text-decoration: underline;
							color: #006666; font-weight: bold;">
							<%#Eval("Name")%></span>
					</DataItemTemplate>
				</dxwgv:GridViewDataTextColumn>
				<dxwgv:GridViewDataTextColumn FieldName="Phone" Caption="Điện thoại" VisibleIndex="2">
					<HeaderStyle HorizontalAlign="Center" />
					<CellStyle HorizontalAlign="Right">
					</CellStyle>
				</dxwgv:GridViewDataTextColumn>
				<dxwgv:GridViewDataTextColumn FieldName="Fax" Caption="Fax" VisibleIndex="3">
					<HeaderStyle HorizontalAlign="Center" />
					<CellStyle HorizontalAlign="Right">
					</CellStyle>
				</dxwgv:GridViewDataTextColumn>
				<dxwgv:GridViewDataMemoColumn Width="20%" FieldName="Address" VisibleIndex="5" Caption="Địa chỉ">
					<HeaderStyle HorizontalAlign="Center" />
				</dxwgv:GridViewDataMemoColumn>
				<dxwgv:GridViewDataTextColumn Width="15%" FieldName="Email" VisibleIndex="6" Caption="Email">
					<HeaderStyle HorizontalAlign="Center" />
				</dxwgv:GridViewDataTextColumn>
			</Columns>
			<Images ImageFolder="~/App_Themes/Aqua/{0}/">
				<HeaderSortDown Height="5px" Width="6px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortDown.png" />
				<CollapsedButton Height="15px" Width="13px" Url="~/App_Themes/Aqua/GridView/gvCollapsedButton.png" />
				<ExpandedButton Height="15px" Width="13px" Url="~/App_Themes/Aqua/GridView/gvExpandedButton.png" />
				<DetailCollapsedButton Height="15px" Width="13px" Url="~/App_Themes/Aqua/GridView/gvDetailCollapsedButton.png" />
				<DetailExpandedButton Height="15px" Width="13px" Url="~/App_Themes/Aqua/GridView/gvDetailExpandedButton.png" />
				<HeaderFilter Height="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilter.png" Width="19px" />
				<HeaderActiveFilter Height="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilterActive.png"
					Width="19px" />
				<HeaderSortUp Height="5px" Width="6px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortUp.png" />
				<FilterRowButton Height="13px" Width="13px" />
				<CustomizationWindowClose Width="18px" />
				<PopupEditFormWindowClose Width="18px" />
				<WindowResizer Height="13px" Width="12px" Url="~/App_Themes/Aqua/GridView/WindowResizer.png" />
				<FilterBuilderClose Width="18px" />
			</Images>
			<ClientSideEvents EndCallback="function(s, e) {
	ongvCustomer_EndCallback(s,e);
}" />
			<StylesEditors>
				<ProgressBar Height="25px">
				</ProgressBar>
			</StylesEditors>
			<ImagesEditors>
				<CalendarPrevYear Width="23px" />
				<CalendarPrevMonth Width="19px" />
				<CalendarNextMonth Width="19px" />
				<CalendarNextYear Width="23px" />
				<CalendarFastNavPrevYear Height="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNPrevYear.png" />
				<CalendarFastNavNextYear Height="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNNextYear.png" />
				<DropDownEditDropDown Height="7px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png"
					UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" />
				<SpinEditIncrement Height="6px" Url="~/App_Themes/Aqua/Editors/edtSpinEditIncrementImage.png"
					UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditIncrementDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
					UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png" />
				<SpinEditDecrement Height="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditDecrementImage.png"
					UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditDecrementDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
					UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png" />
				<SpinEditLargeIncrement Height="9px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncImage.png"
					UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png"
					UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png" />
				<SpinEditLargeDecrement Height="9px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecImage.png"
					UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png"
					UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png" />
			</ImagesEditors>
			<Styles CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
			</Styles>
			<SettingsLoadingPanel Text="" />
			<SettingsPager>
				<AllButton>
					<Image Height="19px" Width="28px" />
				</AllButton>
				<FirstPageButton>
					<Image Height="19px" Width="23px" />
				</FirstPageButton>
				<LastPageButton>
					<Image Height="19px" Width="23px" />
				</LastPageButton>
				<NextPageButton>
					<Image Height="19px" Width="19px" />
				</NextPageButton>
				<PrevPageButton>
					<Image Height="19px" Width="19px" />
				</PrevPageButton>
			</SettingsPager>
		</dxwgv:ASPxGridView>
	</div>
	<div>
		<asp:HiddenField ID="hfCustomerId" runat="server" />
	</div>
	<dxpc:ASPxPopupControl ID="pcInfo" ClientInstanceName="pcInfo" runat="server" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
		CssPostfix="Aqua" ImageFolder="~/App_Themes/Aqua/{0}/" Width="600px" HeaderText="Thông tin chi tiết"
		Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
		AllowDragging="True">
		<ContentStyle VerticalAlign="Top">
		</ContentStyle>
		<SizeGripImage Height="12px" Width="12px" />
		<ContentCollection>
			<dxpc:PopupControlContentControl>
				<dxtc:ASPxPageControl Width="100%" ID="carTabPage" runat="server" ActiveTabIndex="0"
					EnableHierarchyRecreation="True">
					<Border BorderStyle="None" />
					<TabPages>
						<dxtc:TabPage Text="Mua hàng">
							<ContentCollection>
								<dxw:ContentControl ID="ContentControl1" runat="server">
									<div>
										<table style="width: 100%" cellpadding="0" cellspacing="0">
											<tr style="width: 100%">
												<td>
													<dxwgv:ASPxGridView ID="gvPurchaseDetail" ClientInstanceName="gvPurchaseDetail" runat="server"
														AutoGenerateColumns="False" Width="100%" OnCustomCallback="gvPurchaseDetail_CustomCallback"
														CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" KeyFieldName="Id"
														OnPageIndexChanged="gvPurchaseDetail_PageIndexChanged">
														<Templates>
															<GroupRow>
																<table style="font-family: Tahoma; font-size: 11px; color: #294D54; width: 100%;">
																	<tr>
																		<td style="width: 150px;">
																			<asp:Label ID="Label10" runat="server" Text="Ngày mua hàng"></asp:Label>: <span style="text-transform: uppercase;
																				font-weight: bold;">
																				<asp:Label ID="Label13" runat="server" Text='<%#Eval("Date") %>'></asp:Label>
																			</span>
																		</td>
																	</tr>
																</table>
															</GroupRow>
														</Templates>
														<SettingsBehavior AllowDragDrop="False" AllowSort="False" />
														<Styles CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
														</Styles>
														<SettingsPager>
															<AllButton>
																<Image Height="19px" />
															</AllButton>
															<FirstPageButton>
																<Image Height="19px" />
															</FirstPageButton>
															<LastPageButton>
																<Image Height="19px" />
															</LastPageButton>
															<NextPageButton>
																<Image Height="19px" />
															</NextPageButton>
															<PrevPageButton>
																<Image Height="19px" />
															</PrevPageButton>
														</SettingsPager>
														<SettingsLoadingPanel Text="" />
														<Images ImageFolder="~/App_Themes/Aqua/{0}/">
															<HeaderSortDown Height="5px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortDown.png" />
															<CollapsedButton Height="15px" Width="11px" Url="~/App_Themes/Aqua/GridView/gvCollapsedButton.png" />
															<ExpandedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvExpandedButton.png" />
															<DetailCollapsedButton Height="15px" Width="9px" Url="~/App_Themes/Aqua/GridView/gvDetailCollapsedButton.png" />
															<DetailExpandedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvDetailExpandedButton.png" />
															<HeaderFilter Height="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilter.png" Width="18px" />
															<HeaderActiveFilter Height="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilterActive.png"
																Width="18px" />
															<HeaderSortUp Height="5px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortUp.png" />
															<FilterRowButton Height="13px" Width="13px" />
															<CustomizationWindowClose Width="17px" />
															<PopupEditFormWindowClose Width="17px" />
															<WindowResizer Height="13px" Url="~/App_Themes/Aqua/GridView/WindowResizer.png" />
															<FilterBuilderClose Width="17px" />
														</Images>
														<Columns>
															<dxwgv:GridViewDataTextColumn FieldName="Id" Visible="false">
															</dxwgv:GridViewDataTextColumn>
															<dxwgv:GridViewDataTextColumn FieldName="Product" VisibleIndex="3" Caption="Sản phẩm"
																Width="40px">
																<HeaderStyle HorizontalAlign="Center" />
															</dxwgv:GridViewDataTextColumn>
															<dxwgv:GridViewDataTextColumn FieldName="Quantity" VisibleIndex="3" Caption="Số lượng"
																Width="40px">
																<HeaderStyle HorizontalAlign="Center" />
																<PropertiesTextEdit DisplayFormatString="###,###,##0">
																</PropertiesTextEdit>
															</dxwgv:GridViewDataTextColumn>
															<dxwgv:GridViewDataTextColumn FieldName="Price" VisibleIndex="3" Caption="Giá" Width="40px">
																<HeaderStyle HorizontalAlign="Center" />
																<PropertiesTextEdit DisplayFormatString="###,###,##0">
																</PropertiesTextEdit>
															</dxwgv:GridViewDataTextColumn>
														</Columns>
														<ImagesEditors>
															<CalendarFastNavPrevYear Height="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNPrevYear.png" />
															<CalendarFastNavNextYear Height="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNNextYear.png" />
															<DropDownEditDropDown Height="7px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png"
																UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" />
															<SpinEditIncrement Height="6px" Url="~/App_Themes/Aqua/Editors/edtSpinEditIncrementImage.png"
																UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditIncrementDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
																UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png" />
															<SpinEditDecrement Height="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditDecrementImage.png"
																UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditDecrementDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
																UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png" />
															<SpinEditLargeIncrement Height="9px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncImage.png"
																UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png"
																UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png" />
															<SpinEditLargeDecrement Height="9px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecImage.png"
																UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png"
																UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png" />
														</ImagesEditors>
														<StylesEditors>
															<ProgressBar Height="25px">
															</ProgressBar>
														</StylesEditors>
														<ClientSideEvents EndCallback="function(s,e){ongvPurchaseDetail_EndCallback(s,e);}" />
													</dxwgv:ASPxGridView>
												</td>
											</tr>
										</table>
									</div>
								</dxw:ContentControl>
							</ContentCollection>
						</dxtc:TabPage>
						<dxtc:TabPage Text="Bảo hành">
							<ContentCollection>
								<dxw:ContentControl ID="ContentControl2" runat="server">
									<div>
										<table style="width: 100%" cellpadding="0" cellspacing="0">
											<tr style="width: 100%">
												<td>
													<dxwgv:ASPxGridView ID="gvGuarantee" ClientInstanceName="gvGuarantee" runat="server"
														AutoGenerateColumns="False" Width="100%" OnCustomCallback="gvGuarantee_CustomCallback"
														CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" KeyFieldName="Id"
														OnPageIndexChanged="gvGuarantee_PageIndexChanged">
														<Templates>
															<GroupRow>
																<table style="font-family: Tahoma; font-size: 11px; color: #294D54; width: 100%;">
																	<tr>
																		<td style="width: 150px;">
																			<asp:Label ID="Label10" runat="server" Text="Mã máy"></asp:Label>: <span style="text-transform: uppercase;
																				font-weight: bold;">
																				<asp:Label ID="Label13" runat="server" Text='<%#Eval("ProductCode") %>'></asp:Label>
																			</span>
																		</td>
																	</tr>
																</table>
															</GroupRow>
														</Templates>
														<SettingsBehavior AllowDragDrop="False" AllowSort="False" AllowGroup="true" />
														<Styles CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
														</Styles>
														<SettingsPager>
															<AllButton>
																<Image Height="19px" />
															</AllButton>
															<FirstPageButton>
																<Image Height="19px" />
															</FirstPageButton>
															<LastPageButton>
																<Image Height="19px" />
															</LastPageButton>
															<NextPageButton>
																<Image Height="19px" />
															</NextPageButton>
															<PrevPageButton>
																<Image Height="19px" />
															</PrevPageButton>
														</SettingsPager>
														<SettingsLoadingPanel Text="" />
														<Images ImageFolder="~/App_Themes/Aqua/{0}/">
															<HeaderSortDown Height="5px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortDown.png" />
															<CollapsedButton Height="15px" Width="11px" Url="~/App_Themes/Aqua/GridView/gvCollapsedButton.png" />
															<ExpandedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvExpandedButton.png" />
															<DetailCollapsedButton Height="15px" Width="9px" Url="~/App_Themes/Aqua/GridView/gvDetailCollapsedButton.png" />
															<DetailExpandedButton Height="15px" Url="~/App_Themes/Aqua/GridView/gvDetailExpandedButton.png" />
															<HeaderFilter Height="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilter.png" Width="18px" />
															<HeaderActiveFilter Height="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilterActive.png"
																Width="18px" />
															<HeaderSortUp Height="5px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortUp.png" />
															<FilterRowButton Height="13px" Width="13px" />
															<CustomizationWindowClose Width="17px" />
															<PopupEditFormWindowClose Width="17px" />
															<WindowResizer Height="13px" Url="~/App_Themes/Aqua/GridView/WindowResizer.png" />
															<FilterBuilderClose Width="17px" />
														</Images>
														<Columns>
															<dxwgv:GridViewDataTextColumn FieldName="Id" Visible="false">
															</dxwgv:GridViewDataTextColumn>
															<dxwgv:GridViewDataDateColumn FieldName="Date" VisibleIndex="1" Caption="Ngày nhận máy"
																Width="40px">
																<HeaderStyle HorizontalAlign="Center" />
															</dxwgv:GridViewDataDateColumn>
															<dxwgv:GridViewDataDateColumn FieldName="ReturnDate" VisibleIndex="1" Caption="Ngày trả máy"
																Width="40px">
																<HeaderStyle HorizontalAlign="Center" />
															</dxwgv:GridViewDataDateColumn>
															<dxwgv:GridViewDataTextColumn FieldName="Note" VisibleIndex="2" Caption="Ghi chú">
																<HeaderStyle HorizontalAlign="Center" />
															</dxwgv:GridViewDataTextColumn>
															<dxwgv:GridViewDataTextColumn FieldName="ProductCode" Visible="false">
																<HeaderStyle HorizontalAlign="Center" />
															</dxwgv:GridViewDataTextColumn>
														</Columns>
														<ImagesEditors>
															<CalendarFastNavPrevYear Height="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNPrevYear.png" />
															<CalendarFastNavNextYear Height="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNNextYear.png" />
															<DropDownEditDropDown Height="7px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png"
																UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" />
															<SpinEditIncrement Height="6px" Url="~/App_Themes/Aqua/Editors/edtSpinEditIncrementImage.png"
																UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditIncrementDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
																UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png" />
															<SpinEditDecrement Height="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditDecrementImage.png"
																UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditDecrementDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
																UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png" />
															<SpinEditLargeIncrement Height="9px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncImage.png"
																UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png"
																UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png" />
															<SpinEditLargeDecrement Height="9px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecImage.png"
																UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecDisabledImage.png" UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png"
																UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png" />
														</ImagesEditors>
														<StylesEditors>
															<ProgressBar Height="25px">
															</ProgressBar>
														</StylesEditors>
														<ClientSideEvents EndCallback="function(s,e){ongvGuarantee_EndCallback(s,e);}" />
													</dxwgv:ASPxGridView>
												</td>
											</tr>
										</table>
									</div>
								</dxw:ContentControl>
							</ContentCollection>
						</dxtc:TabPage>
					</TabPages>
				</dxtc:ASPxPageControl>
				<div style="padding-top: 10px; float: right;">
					<dxe:ASPxButton ID="ASPxButton2" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
						CssPostfix="Aqua" Text="Đóng">
						<Image Url="../Images/cancel.png" />
						<ClientSideEvents Click="function(s,e){pcInfo.Hide();}" />
					</dxe:ASPxButton>
				</div>
				<asp:XmlDataSource ID="xdsType" runat="server" DataFile="~/App_Data/Status.xml" XPath="Items/PaymentMethod/Status">
				</asp:XmlDataSource>
			</dxpc:PopupControlContentControl>
		</ContentCollection>
		<CloseButtonImage Height="16px" Width="17px" />
		<HeaderStyle Font-Bold="True" ForeColor="#59A1EF" />
	</dxpc:ASPxPopupControl>

	<script type="text/javascript" language="javascript">

		function onbtnSearch(s, e) {
			gvCustomer.PerformCallback();
		}
		function ongvCustomer_EndCallback(s, e) {
		}

		function showCustomerInfo(id) {
			document.getElementById('<%=hfCustomerId.ClientID %>').value = id;
			gvPurchaseDetail.PerformCallback();
		}

		function ongvPurchaseDetail_EndCallback(s, e) {
			setTimeout('gvGuarantee.PerformCallback();', 10);
		}

		function ongvGuarantee_EndCallback(s, e) {
			pcInfo.Show();
		}
	</script>

</asp:Content>
